import flRequest from '@/service'
import { IDataType } from '../../type'
import { IMSG, IGetMsgList } from './type'
enum MessageApi {
  MsgDoctorTalk = 'Msg.DoctorTalk', // 未读消息列表
  MsgDoctorMsg = 'Msg.DoctorMsg' //获取聊天记录
}
export function MsgDoctorTalk(params: IMSG) {
  return flRequest.get<IDataType>({
    url: MessageApi.MsgDoctorTalk,
    params
  })
}
export function MsgDoctorMsg(params: IGetMsgList) {
  return flRequest.get({
    url: MessageApi.MsgDoctorMsg,
    params
  })
}
